 package cn.itlaobing.web.controller;

import java.lang.reflect.InvocationTargetException;
import java.util.List;

import javax.servlet.http.HttpSession;

import org.apache.commons.beanutils.BeanUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import cn.itlaobing.entity.Account;
import cn.itlaobing.service.impl.AccountServiceImpl;

@Controller
public class AccountController {
	
	@Autowired
	AccountServiceImpl accountService ;

	@RequestMapping(value="/signin",method=RequestMethod.GET)
	public String login(){
		return "signIn";
		
	}

	@RequestMapping(value="/signin",method=RequestMethod.POST)
	public String index(HttpSession session, String username, String userpass){
	
		List<Account> list = accountService.findAcc(username);

		accountService.findAcc(username);
		return "signIn";
		
	}
	

}
